Storeengine\Payment\Gateways\PaymentGateway C

Total Complexity 113
Dependencies 8
Dependents 4
Total lines 945
Lines of code 359
Logical lines of code 164
Comment lines 447
Methods 58
Properties 20

Methods 58

Method Rating Maintainability Complexity Lines of code
init_settings()
A
51 8 23
is_available()
S
63 8 10
get_option()
S
60 6 13
handle_save_request()
S
56 5 16
email_instructions()
S
63 5 9
get_order_total()
S
62 4 11
get_tokens()
S
65 4 9
get_total_payment()
S
67 4 7
lock_order_refund()
S
59 3 14
get_transaction_url()
S
66 3 8
get_new_payment_method_option_html()
S
62 2 12
get_title()
S
56 1 20
payment_fields()
S
68 2 8
can_refund_order()
S
79 2 3
process_refund()
S
70 2 6
saved_payment_methods()
S
64 2 9
thankyou_page()
S
71 2 6
get_instructions()
S
69 2 6
has_subscription()
S
71 2 6
get_icon()
S
72 2 4
get_return_url()
S
66 2 8
get_field_default()
S
78 2 3
update_option()
S
69 2 7
set_option()
S
71 2 6
get_settings()
S
72 2 6
set_defaults()
S
71 2 6
get_saved_payment_method_option_html()
S
61 1 13
save_payment_method_checkbox()
S
64 1 11
unlock_order_refund()
S
77 1 4
get_admin_fields_sorted()
S
71 1 5
get_admin_fields()
S
77 1 3
init_admin_fields()
S
91 1 2
need_config_verification()
S
82 1 3
add_payment_method()
S
71 1 6
set_index()
S
80 1 3
get_method_title()
S
79 1 3
tokenization_script()
S
65 1 9
get_method_description()
S
79 1 3
supports()
S
77 1 3
admin_options()
S
91 1 2
validate_fields()
S
91 1 2
has_fields()
S
82 1 3
get_description()
S
78 1 3
get_refund_log_meta_key()
S
80 1 3
needs_setup()
S
82 1 3
is_payment_needed()
S
79 1 3
is_enabled()
S
82 1 3
process_payment()
S
82 1 3
is_saved_cards_enabled()
S
82 1 3
set_settings()
S
81 1 3
save_settings()
S
77 1 3
is_current()
S
82 1 3
set_current()
S
81 1 3
get_pay_button_id()
S
80 1 3
get_index()
S
82 1 3
has_icon()
S
80 1 3
get_icon_url()
S
79 1 3
get_option_key()
S
80 1 3